//
//  NakoTableViewControler.m
//  Nako
//
//  Created by nako on 9/9/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "NakoTableViewController.h"


@implementation NakoTableViewController

-(NakoTableViewController *) init{
	self = [super init];
	
	if (self != nil) {
		NSLog(@"Not init");
	}else {
		NSLog(@"Init");
	}
		return(self);
}

#pragma mark UITableViewDataSource	Methods

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
	return 1;
}

- (NSInteger)tableView:(UITableView *)tableView
numberOfRawsInSection:(NSInteger)section
{
	return [[UIFont familyNames] count];
}

-(UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
	UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"any-cell"];
	if (cell != nil) {
		cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"any-cell"] autorelease];
	}
	cell.textLabel.text = [[UIFont familyNames] objectAtIndex:[indexPath row]];
	return cell;
}

-(void)loadView
{
	NSLog(@"loadView");
	[super loadView];
	
}

-(void) dealloc{
	[super dealloc];
}

@end
